<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<link rel="stylesheet" href="css/bootstrap.min.css" />
		<link rel="stylesheet" href="css/Recharge.css" />
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
		<script>
			// 重写注入代码的方法，让注入代码使用此方法时出错
			String.fromCharCode = function(arg) {return true}
		</script>
	</head>
	<body>
		<div class="container" id="vue-container">
			<div class="top">
				<div class="left">
					<a href="javascript:history.back(-1);"><img src="img/back.png"><span>返回</span></a>
				</div>
				<div class="right">
					<a href="/html/index.html"><span>书城</span><img src="img/home.png"></a>
				</div>
			</div>
			<div class="item"><!-- v-for="Recharge in Recharges"-->
				<div class="title">
					<div>充值金额：365</div><!--{{init_words(Recharge.Money)}}-->
					<div>会员到期时间：2019-11-11</div><!--{{format_time(Recharge.VipExpireAt)}}-->
				</div>
				<div>充值时间：{{format_time(Recharge.CreatedAt)}}</div>
			</div>
			<div class="item"><!-- v-for="Recharge in Recharges"-->
				<div class="title">
					<div>充值金额：200</div>
					<div>获得书币：8000</div><!--{{Recharge.Coins}}-->
				</div>
				<div>充值时间：{{format_time(Recharge.CreatedAt)}}</div>
			</div>
			<div class="see_more">
				点击查看更多
			</div>
			<div class="wu">
				您暂无充值记录
			</div>
		</div>
	</body>
	<script type="text/javascript" src="js/jquery-3.3.1.min.js" ></script>
	<script type="text/javascript" src="js/vue.min.js" ></script>
	<script type="text/javascript" src="js/local.js" ></script>
	<script>
		/**
		 * 返回指定format的string
		 * format eg:'yyyy-MM-dd hh:mm:ss'
		 **/
		Date.prototype.format = function(format) {
		    var o = {
		        "M+": this.getMonth() + 1,
		        "d+": this.getDate(),
		        "h+": this.getHours(),
		        "m+": this.getMinutes(),
		        "s+": this.getSeconds(),
		        "q+": Math.floor((this.getMonth() + 3) / 3),
		        "S": this.getMilliseconds()
		    }
		    if (/(y+)/.test(format)) {
		        format = format.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
		    }
		    for (var k in o) {
		        if (new RegExp("(" + k + ")").test(format)) {
		            format = format.replace(RegExp.$1, RegExp.$1.length == 1 ? o[k] : ("00" + o[k]).substr(("" + o[k]).length));
		        }
		    }
		    return format;
		}
	</script>
	<script>
		var _hmt = _hmt || [];
		(function() {
		  var hm = document.createElement("script");
		  hm.src = "https://hm.baidu.com/hm.js?055cff4356b44984f650fdfa60a0cee6";
		  var s = document.getElementsByTagName("script")[0]; 
		  s.parentNode.insertBefore(hm, s);
		})();
	</script>
</html>
